package com.jksj;

public class Runner2 implements Runnable {
    @Override
    public void run() {
        System.out.println("===========0========");
        boolean interrupted = Thread.currentThread().isInterrupted();
        System.out.println(interrupted);
        boolean interrupted1 = Thread.interrupted();  //重置状态
        System.out.println(interrupted1);
        boolean interrupted2 = Thread.currentThread().isInterrupted();


        System.out.println(interrupted2);
    }
}
